import request from '@/utils/request'

// 查询参保档案列表
export function listCbda(query) {
  return request({
    url: '/cbda/cbda/list',
    method: 'get',
    params: query
  })
}

// 查询参保档案详细
export function getCbda(id) {
  return request({
    url: '/cbda/cbda/' + id,
    method: 'get'
  })
}

// 新增参保档案
export function addCbda(data) {
  return request({
    url: '/cbda/cbda',
    method: 'post',
    data: data
  })
}

// 修改参保档案
export function updateCbda(data) {
  return request({
    url: '/cbda/cbda',
    method: 'put',
    data: data
  })
}

// 删除参保档案
export function delCbda(id) {
  return request({
    url: '/cbda/cbda/' + id,
    method: 'delete'
  })
}
